<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATES_PATH;?>/css/shop_search.css"/>
<header class="layout head padding-small">
    <a href="javascript:pageBack();" class="hBack float-left"></a>
    <h4 class="hTxt float-left text-center text-white">商城搜索结果</h4>
    <a href="javascript:;" id="btnJdkey" class="hHlep float-right"></a>
</header>
<script type="text/javascript">
	$(function(){
		$(window).scroll(function(){
			var $header = $('header');
			if($(window).scrollTop() >= 44){
				$header.hide();
			}else{
				$header.show();
			};
		});
	})
</script>
<div class="layout padding fixed">
    <div class="layout">
        <div class="line">
            <ul class="x12 list-unstyle">
                <form class="c-form-suggest" id="J_Search" method="get">
                    <input type="hidden" name="act" value="shop_search" />
                <li class="x9"><input type="text" name="keyword" value="<?php echo
                    $_GET['keyword']?>" class="input left_yj" placeholder="输入商城名称"></li>
                <li class="x3"><input type="submit" class="button right_yj bg-dot button-block" value="搜 索"/></li>
            </ul>
        </div><!--//line-->
    </div>
</div>

<div class="store_list">
	<?php if(!empty($output['store_list']) && is_array($output['store_list'])){?>
    <?php foreach($output['store_list'] as $skey => $store){?>
	<div class="store_item">
    	<a href="index.php?act=show_store&id=<?php echo $store['store_id']?>">
            <dl>
                <dd class="d_top">
                    <img src="<?php echo $store['store_logo'];?>" />
                    <dl class="d_fr">
                        <dd class="store_name"><?php echo $store['store_name'];?><span class="store_mem"> ( <?php echo $store['member_name'];?> )</span></dd>
                        <dd><?php echo $store['area_info'];?></dd>
                        <dd>
                        信用度：<?php if(in_array($store['store_id'], array(OFFICIAL_STORE_ID,JKY_STORE_ID))){ ?><strong style="color:#F00">官方商城</strong><?php }else{ ?><?php if (!empty($store['credit_arr'])){ echo '暂无'; }else {?><span class="seller-<?php echo $store['credit_arr']['grade']; ?> level-<?php echo $store['credit_arr']['songrade']; ?>"></span><?php }?><?php }?>
          				</dd>
                        <dd class="shop-lastDd">
							<?php echo ($tmp = $store['goods_count']) ? '商品数量 <span class="hight_color">'.$tmp.'</span> 件' : '暂无商品';?>，
                            <?php echo ($tmp = $store['num_sales_jq']) ? '最近成交 <span class="hight_color">'.$tmp.'</span> 笔' : '暂无销量';?>
                        </dd>
                        
                    </dl>
                </dd>
                <dd class="d_bot">主营商品：<?php echo $store['store_zy'] != ''?$store['store_zy']:'全部'?></dd>
            </dl>
        </a>
    </div>
    <?php }?>
    <?php require_once 'page.php';?>
    <?php }else{?>
    <div style="font-size:1.5em; margin-top:20px; color:#F90; text-align:center;">暂无相关的数据记录</div>
    <?php }?>
</div>